package Homework03;

public class FruitTest {
    public static void main(String[] args) {
        Apple apple = new Apple();
        apple.setArea("云南昭通");
        apple.setName("苹果");
        apple.setPrice(10);
        System.out.println(apple);


        Watermelon watermelon = new Watermelon();
        watermelon.setArea("云南玉溪");
        watermelon.setName("西瓜");
        watermelon.setPrice(15);
        System.out.println(watermelon);

        Banana banana = new Banana();
        banana.setArea("云南红河");
        banana.setName("香蕉");
        banana.setPrice(5);
        System.out.println(banana);
    }
}
